import BasicLayout from "@/layout/BasicLayout.vue";

/*
hidden为true的路由不会在侧边栏显示
title,icon是标题和图标

[{
  id: '1',
  title: '菜单1',
  path: "/Option1",
  icon: "carryOutOutlined",
},
{
  id: '2',
  title: '菜单2',
  children: [
     {
        id: '2.1',
        title: '菜单2-2',
        path: "/Option2",
        icon: "carryOutOutlined",
        children: [
          { id: '2.1.1', title: 'Option 2.1.1',path: "/Option2/Option22",icon: "carryOutOutlined" },
        ],
     },
   ],
}],
*/

const routeData = [
  {
    path: "/",
    redirect: "/aaa",
    hidden: true,
  },
  {
    path: "/aaa",
    redirect: "/helloWorld",
    hidden: true,
  },
  {
    id: "8888",
    title: "定位",
    icon: "tag-outlined",
        path: "/positionbaidu",
        component: () => import("@/views/baiduMap/index.vue"),
    
  },
  {
    id: "9999",
    title: "搜索经纬度",
    icon: "tag-outlined",
        path: "/positiongaode",
        component: () => import("@/views/baiduMap/sousuomap.vue"),
    
  },
  {
    id: "1",
    title: "菜单1",
    path: "/",
    icon: "carryOutOutlined",
    component: BasicLayout,
    children: [
      {
        id: "helloWorld",
        path: "helloWorld",
        title: "helloWorld",
        icon: "plus-circle-outlined",
        component: () => import("@/views/helloWorld/index.vue"),
      },
      {
        id: "demo",
        path: "demo",
        title: "菜单",
        icon: "tag-outlined",
        component: () => import("@/views/helloWorld/demo.vue"),
        // hidden: true,
      },
      {
        id: "upload",
        path: "upload",
        title: "上传",
        icon: "tag-outlined",
        component: () => import("@/views/helloWorld/upload.vue"),
        // hidden: true,
      },
    ],
  },
  {
    id: "2",
    title: "菜单2",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "menu2",
        path: "menu2",
        title: "菜单2",
        icon: "plus-circle-outlined",
        component: () => import("@/views/helloWorld/demo.vue"),
      },
    ],
  },
  {
    id: "2222",
    title: "百度地图",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "baidu",
        path: "baidu",
        title: "百度地图",
        icon: "plus-circle-outlined",
        component: () => import("@/views/baiduMap/index.vue"),
      },
    ],
  },
  {
    id: "3",
    title: "pinia",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "pinia",
        path: "pinia",
        title: "pinia",
        icon: "plus-circle-outlined",
        component: () => import("@/views/pinia/index.vue"),
      },
    ],
  },
  {
    id: "4",
    title: "provide",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "provide",
        path: "provide",
        title: "provide",
        icon: "plus-circle-outlined",
        component: () => import("@/views/provide/index.vue"),
      },
    ],
  },
  {
    id: "5",
    title: "draggable",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "draggable",
        path: "draggable",
        title: "draggable",
        icon: "plus-circle-outlined",
        component: () => import("@/views/draggable/index.vue"),
      },
      {
        id: "draggableFree",
        path: "draggableFree",
        title: "draggableFree",
        icon: "plus-circle-outlined",
        component: () => import("@/views/draggable/freeDrag.vue"),
      },
    ],
  },
  {
    id: "6",
    title: "预览",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "preview",
        path: "preview",
        title: "preview",
        icon: "plus-circle-outlined",
        component: () => import("@/views/preview/index.vue"),
      },
    ],
  },

  {
    id: "7",
    title: "refs",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "refs",
        path: "refs",
        title: "refs",
        icon: "plus-circle-outlined",
        component: () => import("@/views/refs/index.vue"),
      },
    ],
  },

  {
    id: "8",
    title: "es6",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "es6",
        path: "es6",
        title: "es6",
        icon: "plus-circle-outlined",
        component: () => import("@/views/es6/index.vue"),
      },
    ],
  },
  {
    id: "9",
    title: "antdesign",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "antdesign",
        path: "antdesign",
        title: "antdesign",
        icon: "plus-circle-outlined",
        component: () => import("@/views/antdesign/index.vue"),
      },
    ],
  },
  {
    id: "10",
    title: "scss",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "scss",
        path: "scss",
        title: "scss",
        icon: "plus-circle-outlined",
        component: () => import("@/views/scss/index.vue"),
      },
    ],
  },
  {
    id: "11",
    title: "bpmn",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "bpmn",
        path: "bpmn",
        title: "bpmn",
        icon: "plus-circle-outlined",
        component: () => import("@/views/bpmn/index.vue"),
      },
    ],
  },
  {
    id: "11",
    title: "vue3",
    icon: "tag-outlined",
    path: "/",
    component: BasicLayout,
    children: [
      {
        id: "vue3",
        path: "vue3",
        title: "vue3",
        icon: "plus-circle-outlined",
        component: () => import("@/views/vue3/index.vue"),
      },
    ],
  },
  {
    id: "jinge",
    title: "金格云",
    icon: "tag-outlined",
    path: "/jinge",
    component: () => import("@/views/jinge/index.vue"),
    hidden: true,
  },
  {
    // id: "15",
    // title: "签章",
    // icon: "tag-outlined",
    // path: "/",
    // component: BasicLayout,
    // children: [
    //   {
        id: "qianzhang",
        title: "签章",
        icon: "tag-outlined",
        path: "/qianzhang",
        component: () => import("@/views/qianzhang/index.vue"),
   
      // }]
  },
  {
    id: "yanqian",
    title: "验签",
    icon: "tag-outlined",
    path: "/yanqian",
    component: () => import("@/views/qianzhang/yanqian.vue"),
    hidden: true,
  },
  {
    id: "fenye",
    title: "fenye",
    icon: "tag-outlined",
    path: "/fenye",
    component: () => import("@/views/qianzhang/fenye.vue"),
    hidden: true,
  },
  {
    id: "3",
    title: "登录",
    icon: "tag-outlined",
    path: "/login",
    component: () => import("@/views/helloWorld/index.vue"),
    hidden: true,
  },
];
export default routeData;
